package com.andro.chansung;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

public class OpeningActivity extends Activity {
	private Context context;
	private TempHandler handler;
	
	private class TempHandler extends Handler {
		@Override
		public void handleMessage(Message msg) {
			Intent intent = new Intent(context, InjeCSEActivity.class);
			startActivity(intent);
			finish();
		}
	}
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.opening_layout);
		
		context = this;
		handler = new TempHandler();
		
		Thread tempThread = new Thread(new Runnable() {
			public void run() {
				// TODO Auto-generated method stub
				try {
					Thread.sleep(1500);
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
				handler.sendEmptyMessage(0);
			}
		});
		
		tempThread.start();
	}
}
